import java.util.Objects;

/**
 * Created by Chris
 */
public class Body implements Cloneable {
    private Head head;

    public Body(Head head) {
        this.head = head;
    }

    @Override
    public Object clone() throws CloneNotSupportedException {
        Body newb = (Body)super.clone();
        newb.head = (Head)head.clone();
        return newb;
    }

}

class Head implements Cloneable {
    @Override
    protected Object clone() throws CloneNotSupportedException {
        return super.clone();
    }
}
